<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <script src="./axios.min.js"></script>
</head>

<body>
    <h1>更新文件提示</h1>
    <button id="but">发送get请求</button>
    <hr>
    <script>
        but.onclick = function () {
            axios({
                url: 'https://cnodejs.org/api/v1/topics',
                method: 'GET',
                params: {
                    page: 1, limit: 1
                }
            }).then(function (res) {
                console.log(res.data);
            })
        }
    </script>
</body>

</html>